package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Travel;
import cn.wolfcode.luowowo.query.TravelQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 用户服务接口
 */
public interface ITravelService {
    /**
     * 单个查询
     * @param id
     * @return
     */
    Travel get(String id);

    Page list(TravelQuery qo);

    String saveOrUpdate(Travel travel);

    void delete(String id);

    void changeHotValue(String id, int hot);

    void changeState(String id, int state);

    String getContentById(String id);

    List<Travel> findByDestIdForTravel(String destId);

    List<Travel> list();

    List<Travel> getByDestName(String keyword);
}
